
<div ng-include="sys_html('_menu')"></div>
<div class="order-list-page" ng-if="pagedata.op == 'list'">
	<div class='fui-content navbar order-list' style="top:2rem">
		<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem" href="" data-nocache="true">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 订单号: {{item.ordersn}}</div>
                    </div>
                     <div ng-show="item.status==0" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">未确认订单</div>
                    <div ng-show="item.status==1" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已确认订单</div>
                    <div ng-show="item.status==2" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">申请取消</div>
                    <div ng-show="item.status==3" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已取消</div>
                    <div ng-show="item.status==5" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已完成</div>
                    <div class="angle"></div>
                </a> 
                   
                    <a href="" class="external" data-nocache="true">
                        <div class="fui-list goods-list">
                           
                            <div class="fui-list-inner">
                                <div class="text goodstitle towline">发票抬头：{{item.content}}</div>
								金额：￥<span class="marketprice">{{item.price}}</span>
                            </div>
							
                            <div class="fui-list-angle">
							
							<div style="color:#999;font-size:0.55rem"> 申请时间：{{item.createtime}}</div>
                              <div style="color:#999;font-size:0.55rem">状态：{{item.status}}</div>
							</div>
                        </div>
                    </a>
                
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 1" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'done','id='+item.id)">完成</div>
					<div ng-show="item.status == 5 && pagedata.user == 'member'" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="access_json('jy_taxi/invoice_sq/main','orderid='+item.id)">申请发票</div>
					<div ng-show="item.status == 3 || item.status == 4 || item.status == 5" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'del','id='+item.id)">删除</div>
					<div ng-show="item.status == 2 && item.cel == 1"  class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'dcel','id='+item.id)">确认取消</div>
					<div ng-show="item.status == 1 || item.status == 0" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'cel','id='+item.id)">取消</div>
					
				</span>
            </div>
        </div>
		<div class="content-empty" ng-if="pagedata.list == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有申请发票！</p>
		</div>
	</div>
	
</div>
<script type="text/javascript">
function myhome(){
	var params = {
					'plugin':'jy_taxi',
					'action':'home',
					'callback':function(data){
						if(data.error !=1){
							scope.pagedata.member = data.member
							scope.$apply();
						}else{
							alert(data.msg);
						}
					}
			}
	scope.post_json(params);
	$('#myhome').modal();
}
</script>